import { getParentLayout, LAYOUT } from '@/router/constant'

export default [
  {
    path: '/demo',
    name: 'Demo',
    component: LAYOUT,
    redirect: { name: 'form' },
    children: [
      {
        path: 'form',
        name: 'form',
        component: getParentLayout('form'),
        redirect: { name: 'form-basic' },
        children: [
          {
            path: 'basic',
            component: () => import('@/views/demo/BasicForm/index.vue'),
            name: 'form-basic',
            meta: {
              title: '基本表单'
            }
          }
        ]
      }
    ]
  }
]
